#include<iostream>
int main()
{
	int count = 0;
	char word[10];
	std::cout << "Enter words(to stop, type the word done):" << std::endl;
	while (true)
	{
		std::cin >> word;
		if (!std::strcmp(word, "done"))
			break;
		count++;
	}
	std::cout << "You entered a total of " << count << " words." << std::endl;
	std::cin.get();
	return 0;
}